﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<div class="modal-dialog x-modal-dialog">

  <div class="modal-content">

    <div class="modal-header x-breadcrumb no-bottom-border clearfix">

      <h2><i class="glyphicon glyphicon-fire"></i>&nbsp;&nbsp;<span>编辑门店&nbsp;-&nbsp;区域描述</span></h2>

      <button type="button" class="close" data-dismiss="modal">&times;</button>

    </div>

    <form class="form-horizontal" method="POST" action="${ctx.host}/sites/${site.id}/edit-room-description" data-validate="true">
    
      <input type="hidden" name="_method" value="PATCH">
      <input type="hidden" name="siteId" value="${site.id}">
      
      <div class="modal-body">
        
        <div class="form-group x-form-group">
          <label class="control-label col-xs-3">公共区域描述</label>
          <div class="pull-left col-xs-8 pull-left">
            <textarea class="form-control" rows="3" name="roomLimit.commonDescription" data-validate="required">${site.roomLimit.commonDescription}</textarea>
          </div>
        </div>
        
        <div class="form-group x-form-group">
          <label class="control-label col-xs-3">私教区域描述</label>
          <div class="pull-left col-xs-8 pull-left">
            <textarea class="form-control" rows="3" name="roomLimit.roomDescription" data-validate="required">${site.roomLimit.roomDescription}</textarea>
          </div>
        </div>
        
      </div>

      <div class="modal-footer">
        <button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">取消</button>
      </div>
    </form>

  </div>

</div>
